package com.koalac.ironman.net.pojo.response;

import org.json.JSONObject;

public class HomeClass extends BaseResponse {
	private String id;
	private String otherSchoolName;
	private String otherSchoolClass;

	private String otherSchoolRouteName;
	private String otherSchoolPicurl;
	private String schoolName;

	private String schoolPicurl;
	private String galleryName;
	private String galleryPicurl;

	private String dateline;
	private String publish;

	@Override
	public void init(JSONObject source) {
		if (source != null) {
			id = source.optString("id");
			otherSchoolName = source.optString("other_school_name");
			otherSchoolClass = source.optString("other_school_class");

			otherSchoolRouteName = source.optString("other_school_route_name");
			otherSchoolPicurl = source.optString("other_school_picurl");
			schoolName = source.optString("school_name");

			schoolPicurl = source.optString("school_picurl");
			galleryName = source.optString("gallery_name");
			galleryPicurl = source.optString("gallery_picurl");

			dateline = source.optString("dateline");
			publish = source.optString("publish");
		}
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getOtherSchoolName() {
		return otherSchoolName;
	}

	public void setOtherSchoolName(String otherSchoolName) {
		this.otherSchoolName = otherSchoolName;
	}

	public String getOtherSchoolClass() {
		return otherSchoolClass;
	}

	public void setOtherSchoolClass(String otherSchoolClass) {
		this.otherSchoolClass = otherSchoolClass;
	}

	public String getOtherSchoolRouteName() {
		return otherSchoolRouteName;
	}

	public void setOtherSchoolRouteName(String otherSchoolRouteName) {
		this.otherSchoolRouteName = otherSchoolRouteName;
	}

	public String getOtherSchoolPicurl() {
		return otherSchoolPicurl;
	}

	public void setOtherSchoolPicurl(String otherSchoolPicurl) {
		this.otherSchoolPicurl = otherSchoolPicurl;
	}

	public String getSchoolName() {
		return schoolName;
	}

	public void setSchoolName(String schoolName) {
		this.schoolName = schoolName;
	}

	public String getSchoolPicurl() {
		return schoolPicurl;
	}

	public void setSchoolPicurl(String schoolPicurl) {
		this.schoolPicurl = schoolPicurl;
	}

	public String getGalleryName() {
		return galleryName;
	}

	public void setGalleryName(String galleryName) {
		this.galleryName = galleryName;
	}

	public String getGalleryPicurl() {
		return galleryPicurl;
	}

	public void setGalleryPicurl(String galleryPicurl) {
		this.galleryPicurl = galleryPicurl;
	}

	public String getDateline() {
		return dateline;
	}

	public void setDateline(String dateline) {
		this.dateline = dateline;
	}

	public String getPublish() {
		return publish;
	}

	public void setPublish(String publish) {
		this.publish = publish;
	}

}
